package com.ticket.sass.admin.dto.input.member;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * @author ywb
 * @date 2024-03-18 17:46
 */
@Data
@ApiModel
public class MemberCardLevelAddInput {
    @NotBlank(message = "名称不能为空")
    @ApiModelProperty(value = "级别名称")
    private String name;
    
    @Min(value = 0)
    @ApiModelProperty(value = "等级，数字越小级别越低")
    private Integer level = 0;
    
    @DecimalMax(value = "999999.99", message = "最低充值金额不能超过999999.99")
    @DecimalMin(value = "0.00",  message = "最低充值金额不能小于0.0")
    @ApiModelProperty(value = "最低充值金额")
    private BigDecimal minRecharge = new BigDecimal("0.0");
}
